home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- BackColor = &H00C0C0C0&
- Caption = "Form1"
- ClientHeight = 2820
- ClientLeft = 1830
- ClientTop = 1650
- ClientWidth = 5325
- Height = 3225
- Left = 1770
- LinkTopic = "Form1"
- ScaleHeight = 2820
- ScaleWidth = 5325
- Top = 1305
- Width = 5445
- Begin CommandButton Command4
- Caption = "Exit"
- Height = 255
- Left = 3630
- TabIndex = 9
- Top = 1140
- Width = 1275
- End
- Begin CommandButton Command3
- Caption = "Select"
- Height = 255
- Left = 3630
- TabIndex = 8
- Top = 420
- Width = 1245
- End
- Begin CommandButton Command2
- Caption = "Select"
- Height = 255
- Left = 3630
- TabIndex = 7
- Top = 90
- Width = 1245
- End
- Begin CommandButton Command1
- Caption = "Do It"
- Height = 255
- Left = 3630
- TabIndex = 6
- Top = 840
- Width = 1275
- End
- Begin OptionButton Option1
- BackColor = &H00C0C0C0&
- Caption = "UnCompress"
- Height = 195
- Index = 1
- Left = 90
- TabIndex = 5
- Top = 1440
- Width = 1395
- End
- Begin OptionButton Option1
- BackColor = &H00C0C0C0&
- Caption = "Compress"
- Height = 225
- Index = 0
- Left = 90
- TabIndex = 4
- Top = 1200
- Width = 1935
- End
- Begin TextBox Text2
- Height = 285
- Left = 1500
- TabIndex = 2
- Top = 390
- Width = 2085
- End
- Begin TextBox Text1
- Height = 285
- Left = 1500
- TabIndex = 1
- Top = 90
- Width = 2085
- End
- Begin Label Label2
- BackStyle = 0 'Transparent
- Caption = "Destination File:"
- Height = 225
- Left = 60
- TabIndex = 3
- Top = 390
- Width = 1455
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Source File:"
- Height = 225
- Left = 90
- TabIndex = 0
- Top = 120
- Width = 1095
- End
- Sub Command1_Click ()
- If Trim(text1.Text) = "" Then flag = 1
- If Trim(text2.Text) = "" Then flag = 1
- If flag = 1 Then
- MsgBox "Select A File First", 16, "DRAGON SOFTWARE"
- Exit Sub
- End If
- src$ = Trim(text1.Text)
- dst$ = Trim(text2.Text)
- If option1(0).Value = True Then
- x% = doit(Trim(src$), Trim(dst$))
- x% = undoit(Trim(src$), Trim(dst$))
- End If
- If x% = 1 Then
- MsgBox "SUCCESSFUL", 64, "DRAGON SOFTWARE"
- End If
- If x% = 2 Then
- MsgBox "UNSUCCESSFUL", 16, "DRAGON SOFTWARE"
- End If
- End Sub
- Sub Command2_Click ()
- which = 1
- filedlg.Show
- End Sub
- Sub Command3_Click ()
- which = 2
- filedlg.Show
- End Sub
- Sub Command4_Click ()
- End Sub
- Sub Form_Load ()
- option1(0).Value = True
- End Sub
-